/*
 * TransferNegotiationMessage.cpp
 *
 */

#include "PushRequestMessage.h"

vsznDefault(PushRequestMessage);

PushRequestMessage::PushRequestMessage()
{
	// Default constructor is
	// necessary for serialization
}

PushRequestMessage::PushRequestMessage(FilePtr file)
{
  key = file->get_key();
  file_name = file->get_filename();
  size = file->get_size();
}


string PushRequestMessage::get_key()
{
  return key;
}

string PushRequestMessage::get_file_name()
{
  return file_name;
}

uint64_t PushRequestMessage::get_size()
{
  return size;
}
